package cn.schoolwow.quickdao.module.database.ddl.query.service.index;

import cn.schoolwow.quickdao.module.database.ddl.query.flow.index.HasIndexFlow;
import cn.schoolwow.quickdao.module.database.ddl.query.service.entity.HasTableFlow;
import cn.schoolwow.quickflow.QuickFlowExecutor;
import cn.schoolwow.quickflow.flow.CompositeBusinessFlow;

public class HasIndexCompositeBusiness implements CompositeBusinessFlow {
    @Override
    public void executeCompositeBusiness(QuickFlowExecutor quickFlowExecutor) {
        quickFlowExecutor.ignoreBroken(false)
                .next(new HasTableFlow())
                .next(new HasIndexFlow());
    }

    @Override
    public String name() {
        return "判断索引是否存在";
    }
}
